package printer;

/**
 * @author oldliu
 * @since 1.0
 */
public class Printer {
    ///品牌和价格
    private String paizi;
    private int price;
    private Ink ink;
    private Paper paper;
    public Printer(){

    }

    public Printer(String brand, int price) {
        this.paizi = brand;
        this.price = price;
    }

    public void print(String str){
        System.out.println("使用价格是"+price+"元的"+paizi+"打印");
        System.out.println("使用"+ink.getColor()+"墨水");
        paper.print(str);
    }

    public void setBrand(String brand) {
        this.paizi = brand;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public void setInk(Ink ink) {
        this.ink = ink;
    }

    public void setPaper(Paper paper) {
        this.paper = paper;
    }
}
